<?php
class Income_jt extends CI_Controller {
	public function __construct() {
		parent::__construct ();
		
		// 登录校验
		$this->common->check_login ();
		// 通过user_model的get_user_info_id方法获取个人信息
		$this->user_info = $this->user->get_user_info_id($_SESSION ['user'] ['id'] );
		
		$this->load->helper (  array (
				'form',
				'url' ,
				'system'
		)  );
		
		$this->load->model('out_model');
	}
	
	// 
	public function income_jt($page=1) {

		$perpage=10;

		if($page==0){
			$page=1;
		}


		$data ['data_list'] = $this->out_model->out_list_all($page,$perpage,$this->user_info ['id']);

		$data['data_count']=$this->out_model->out_list_all_count($this->user_info ['id']);

		$data['multi']=multi($data['data_count'],$perpage,$page,site_url('income_jt/income_jt/?'),'?');


		$data ['left'] = $this->load->view ( 'left', '', TRUE );
		$data ['menu'] = $this->load->view ( 'menu', '', TRUE );
		$this->load->view ( 'income_jt', $data );
	}
	
}